﻿using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SyncCore.Sync.Models
{
    [ProtoContract]
    public class CommandMessagePack
    {
        [ProtoMember(1)]
        public string Sender { get; set; } = string.Empty;

        [ProtoMember(2)]
        public string Command { get; set; } = string.Empty;

        [ProtoMember(3)]
        public string[] Arguments { get; set; } = Array.Empty<string>();

        public CommandMessagePack()
        {
            
        }

        public CommandMessagePack(string sender)
        {

        }

        public CommandMessagePack(string sender, string content)
        {
            Command = content;
        }

        public CommandMessagePack(string sender, string content, params string[] paras)
        {
            Command = content;
            Arguments = paras;
        }
    }
}
